package com.situ.mall.common.service;

import com.situ.mall.common.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.mall.common.vo.ResultVO;
import com.situ.mall.common.vo.TableVO;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-01-29
 */
public interface IOrdersService extends IService<Order> {

    /* 后端请求 */
    //查询订单
    TableVO table(Integer page, Integer limit, String memberName, String workerName);

    //更新订单状态
    void update(Order order);


    /* 前端请求 */
    //生成订单
    ResultVO order(Integer orderTypeId, Integer memberId, String memberTel, String memberName, String memberDetail, LocalDate time, String hospital, Integer workerId, String price);

}
